using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("FimPetitionDtl"), DataContract]
    public class PetitionDtl
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PetitionDtlsId", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public int PetitionDtlId { get; set; }

		[ForeignKey("Petition")]
		[DataMember, Display(Name = "PetitionId", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<int> PetitionId { get; set; }

        [ForeignKey("MoneyReq")]
		[DataMember, Display(Name = "MoneyReqId", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<int> PayReqId { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> Amount { get; set; }

		[DataMember, Display(Name = "AmountTax", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> AmountTax { get; set; }

		[DataMember, Display(Name = "AmountPenalty", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> AmountPenalty { get; set; }

		[DataMember, Display(Name = "AmountRedemption", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> AmountRedemption { get; set; }

		[DataMember, Display(Name = "AmountFund", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> AmountFund { get; set; }

		[DataMember, Display(Name = "AmountReal", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<double> AmountReal { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PetitionDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual Petition Petition { get; set; }

		public virtual FIM.PayRequest MoneyReq { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }
    }
}